package com.sanyang.pda.adapter;

import android.view.View;
import android.widget.CheckBox;
import android.widget.CompoundButton;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sanyang.pda.bean.MovementLogBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;
import com.wangshen.projectbase.R;

import java.util.List;

public class MovementLogListAdapter extends BaseAdapter<MovementLogBean.WarehouseStockArticleVoListBean> {
    public MovementLogListAdapter(int layoutResId, @Nullable List<MovementLogBean.WarehouseStockArticleVoListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MovementLogBean.WarehouseStockArticleVoListBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_name,item.getArticleName());
        helper.setText(R.id.tv_batch,item.getBatchNo());
        helper.setText(R.id.tv_specification,item.getSpec()+"");
        helper.setText(R.id.et_admire_date,item.getExpiringTime());
    }
}
